/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package trackmsg;

import base.TrackNode;
import base.WaveEnvironment;

/**
 *
 * @author Tue
 */
public class ExpandsMsg extends TrackCtrlMsg{
    private TrackNode currentTrack;
    private String wave;
    private WaveEnvironment waveEnv;    

    public ExpandsMsg(TrackNode currentTrack, String wave, WaveEnvironment waveEnv) {
        this.currentTrack = currentTrack;
        this.wave = wave;
        this.waveEnv = waveEnv;
    }

    public TrackNode getCurrentTrack() {
        return currentTrack;
    }

    public String getWave() {
        return wave;
    }

    public WaveEnvironment getWaveEnv() {
        return waveEnv;
    }

    @Override
    public Type getType() {
        return Type.EXPANDS;
    }
    @Override
    public String toString() {
        return "MESSAGE: " + getType() + " " + getCurrentTrack().getAddress() +
                " " + getWave() + " " + getWaveEnv();
    }
}
